home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / Bowers Development / AppMaker 2.1.sit / AppMaker 2.1 / Examples / Java / Everything / View.java < prev   
MacBinary  |  1996-10-26  |  2.6 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Oct 26 15:32:43 1996, modified Sat Oct 26 15:32:43 1996, creator 'CWIE', type ASCII, 2140 bytes "View.java" , at 0x8dc 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 56 69 65 77 2e 6a | 61 76 61 00 00 00 00 00 |..View.j|ava.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 08 5c 00 | 00 01 1e ae 98 17 db ae |......\.|........|
|00000060| 98 17 db 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d3 e2 00 00 |........|........|
|00000080| 2f 2f 20 56 69 65 77 2e | 6a 61 76 61 20 2d 2d 20 |// View.|java -- |
|00000090| 61 20 70 61 6e 65 6c 0d | 2f 2f 20 67 65 6e 65 72 |a panel.|// gener|
|000000a0| 61 74 65 64 20 62 79 20 | 41 70 70 4d 61 6b 65 72 |ated by |AppMaker|
|000000b0| 0d 0d 69 6d 70 6f 72 74 | 20 6a 61 76 61 2e 61 77 |..import| java.aw|
|000000c0| 74 2e 42 75 74 74 6f 6e | 3b 0d 69 6d 70 6f 72 74 |t.Button|;.import|
|000000d0| 20 6a 61 76 61 2e 61 77 | 74 2e 43 68 65 63 6b 62 | java.aw|t.Checkb|
|000000e0| 6f 78 3b 0d 69 6d 70 6f | 72 74 20 6a 61 76 61 2e |ox;.impo|rt java.|
|000000f0| 61 77 74 2e 43 68 6f 69 | 63 65 3b 0d 69 6d 70 6f |awt.Choi|ce;.impo|
|00000100| 72 74 20 6a 61 76 61 2e | 61 77 74 2e 54 65 78 74 |rt java.|awt.Text|
|00000110| 41 72 65 61 3b 0d 69 6d | 70 6f 72 74 20 6a 61 76 |Area;.im|port jav|
|00000120| 61 2e 61 77 74 2e 4c 69 | 73 74 3b 0d 69 6d 70 6f |a.awt.Li|st;.impo|
|00000130| 72 74 20 6a 61 76 61 2e | 61 77 74 2e 4c 61 62 65 |rt java.|awt.Labe|
|00000140| 6c 3b 0d 69 6d 70 6f 72 | 74 20 6a 61 76 61 2e 61 |l;.impor|t java.a|
|00000150| 77 74 2e 54 65 78 74 46 | 69 65 6c 64 3b 0d 0d 69 |wt.TextF|ield;..i|
|00000160| 6d 70 6f 72 74 20 6a 61 | 76 61 2e 61 77 74 2e 43 |mport ja|va.awt.C|
|00000170| 6f 6c 6f 72 3b 0d 69 6d | 70 6f 72 74 20 6a 61 76 |olor;.im|port jav|
|00000180| 61 2e 61 77 74 2e 45 76 | 65 6e 74 3b 0d 69 6d 70 |a.awt.Ev|ent;.imp|
|00000190| 6f 72 74 20 52 65 63 74 | 50 61 6e 65 6c 3b 0d 0d |ort Rect|Panel;..|
|000001a0| 2f 2f 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 70 75 62 |//------|----.pub|
|000001b0| 6c 69 63 20 63 6c 61 73 | 73 20 56 69 65 77 20 65 |lic clas|s View e|
|000001c0| 78 74 65 6e 64 73 20 52 | 65 63 74 50 61 6e 65 6c |xtends R|ectPanel|
|000001d0| 0d 7b 0d 09 42 75 74 74 | 6f 6e 09 09 09 6d 42 75 |.{..Butt|on...mBu|
|000001e0| 74 74 6f 6e 42 75 74 74 | 6f 6e 3b 0d 09 43 68 65 |ttonButt|on;..Che|
|000001f0| 63 6b 62 6f 78 09 09 6d | 43 68 65 63 6b 62 6f 78 |ckbox..m|Checkbox|
|00000200| 43 68 65 63 6b 3b 0d 09 | 43 68 6f 69 63 65 09 09 |Check;..|Choice..|
|00000210| 09 6d 50 6f 70 75 70 43 | 68 6f 69 63 65 3b 0d 09 |.mPopupC|hoice;..|
|00000220| 54 65 78 74 41 72 65 61 | 09 09 6d 54 65 78 74 41 |TextArea|..mTextA|
|00000230| 72 65 61 46 69 65 6c 64 | 3b 0d 09 4c 69 73 74 09 |reaField|;..List.|
|00000240| 09 09 6d 53 74 79 6c 65 | 73 4c 69 73 74 3b 0d 09 |..mStyle|sList;..|
|00000250| 4c 61 62 65 6c 09 09 09 | 6d 4c 61 62 65 6c 4c 61 |Label...|mLabelLa|
|00000260| 62 65 6c 3b 0d 09 54 65 | 78 74 46 69 65 6c 64 09 |bel;..Te|xtField.|
|00000270| 09 6d 54 65 78 74 46 69 | 65 6c 64 46 69 65 6c 64 |.mTextFi|eldField|
|00000280| 3b 0d 0d 09 2f 2f 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |;...//--|--------|
|00000290| 0d 09 70 75 62 6c 69 63 | 20 56 69 65 77 28 29 0d |..public| View().|
|000002a0| 09 7b 0d 09 09 73 75 70 | 65 72 28 29 3b 0d 0d 09 |.{...sup|er();...|
|000002b0| 09 2f 2f 20 42 69 6e 64 | 69 6e 67 4c 61 79 6f 75 |.// Bind|ingLayou|
|000002c0| 74 20 62 20 3d 20 6e 65 | 77 20 42 69 6e 64 69 6e |t b = ne|w Bindin|
|000002d0| 67 4c 61 79 6f 75 74 28 | 29 3b 0d 09 09 09 2f 2f |gLayout(|);....//|
|000002e0| 20 42 69 6e 64 69 6e 67 | 4c 61 79 6f 75 74 20 69 | Binding|Layout i|
|000002f0| 73 20 61 20 4c 61 79 6f | 75 74 4d 61 6e 61 67 65 |s a Layo|utManage|
|00000300| 72 0d 09 09 09 2f 2f 20 | 74 68 61 74 20 69 6d 70 |r....// |that imp|
|00000310| 6c 65 6d 65 6e 74 73 20 | 22 62 69 6e 64 69 6e 67 |lements |"binding|
|00000320| 22 20 6f 66 20 63 6f 6d | 70 6f 6e 65 6e 74 73 0d |" of com|ponents.|
|00000330| 09 09 09 2f 2f 20 73 6f | 20 74 68 61 74 20 74 68 |...// so| that th|
|00000340| 65 79 20 72 65 73 69 7a | 65 20 77 68 65 6e 20 74 |ey resiz|e when t|
|00000350| 68 65 79 20 63 6f 6e 74 | 61 69 6e 65 72 20 69 73 |hey cont|ainer is|
|00000360| 20 72 65 73 69 7a 65 64 | 2e 0d 09 09 09 2f 2f 20 | resized|.....// |
|00000370| 42 69 6e 64 69 6e 67 4c | 61 79 6f 75 74 20 77 61 |BindingL|ayout wa|
|00000380| 73 20 77 72 69 74 74 65 | 6e 20 62 79 20 61 20 52 |s writte|n by a R|
|00000390| 6f 61 73 74 65 72 20 65 | 6e 67 69 6e 65 65 72 0d |oaster e|ngineer.|
|000003a0| 09 09 09 2f 2f 20 61 6e | 64 20 69 73 20 6e 6f 74 |...// an|d is not|
|000003b0| 20 70 75 62 6c 69 63 6c | 79 20 61 76 61 69 6c 61 | publicl|y availa|
|000003c0| 62 6c 65 2e 0d 09 09 09 | 2f 2f 20 49 66 20 42 69 |ble.....|// If Bi|
|000003d0| 6e 64 69 6e 67 4c 61 79 | 6f 75 74 20 62 65 63 6f |ndingLay|out beco|
|000003e0| 6d 65 73 20 70 75 62 6c | 69 63 6c 79 20 61 76 61 |mes publ|icly ava|
|000003f0| 69 6c 61 62 6c 65 0d 09 | 09 09 2f 2f 20 74 68 65 |ilable..|..// the|
|00000400| 6e 20 41 70 70 4d 61 6b | 65 72 20 77 69 6c 6c 20 |n AppMak|er will |
|00000410| 67 65 6e 65 72 61 74 65 | 20 63 6f 64 65 20 66 6f |generate| code fo|
|00000420| 72 20 69 74 2e 0d 09 09 | 2f 2f 20 73 65 74 4c 61 |r it....|// setLa|
|00000430| 79 6f 75 74 28 62 29 3b | 0d 09 09 73 65 74 4c 61 |yout(b);|...setLa|
|00000440| 79 6f 75 74 20 28 6e 75 | 6c 6c 29 3b 0d 0d 09 09 |yout (nu|ll);....|
|00000450| 72 65 73 69 7a 65 20 28 | 33 32 35 2c 20 32 31 34 |resize (|325, 214|
|00000460| 29 3b 0d 0d 09 09 61 64 | 64 20 28 6d 42 75 74 74 |);....ad|d (mButt|
|00000470| 6f 6e 42 75 74 74 6f 6e | 20 3d 20 6e 65 77 20 42 |onButton| = new B|
|00000480| 75 74 74 6f 6e 20 28 22 | 42 75 74 74 6f 6e 22 29 |utton ("|Button")|
|00000490| 29 3b 0d 09 09 6d 42 75 | 74 74 6f 6e 42 75 74 74 |);...mBu|ttonButt|
|000004a0| 6f 6e 2e 72 65 73 68 61 | 70 65 20 28 32 30 2c 20 |on.resha|pe (20, |
|000004b0| 31 36 2c 20 37 32 2c 20 | 32 30 29 3b 0d 09 09 6d |16, 72, |20);...m|
|000004c0| 42 75 74 74 6f 6e 42 75 | 74 74 6f 6e 2e 73 65 74 |ButtonBu|tton.set|
|000004d0| 42 61 63 6b 67 72 6f 75 | 6e 64 20 28 43 6f 6c 6f |Backgrou|nd (Colo|
|000004e0| 72 2e 77 68 69 74 65 29 | 3b 0d 0d 09 09 61 64 64 |r.white)|;....add|
|000004f0| 20 28 6d 43 68 65 63 6b | 62 6f 78 43 68 65 63 6b | (mCheck|boxCheck|
|00000500| 20 3d 20 6e 65 77 20 43 | 68 65 63 6b 62 6f 78 20 | = new C|heckbox |
|00000510| 28 22 43 68 65 63 6b 62 | 6f 78 22 29 29 3b 0d 09 |("Checkb|ox"));..|
|00000520| 09 6d 43 68 65 63 6b 62 | 6f 78 43 68 65 63 6b 2e |.mCheckb|oxCheck.|
|00000530| 72 65 73 68 61 70 65 20 | 28 31 31 36 2c 20 32 30 |reshape |(116, 20|
|00000540| 2c 20 38 34 2c 20 31 36 | 29 3b 0d 0d 09 09 61 64 |, 84, 16|);....ad|
|00000550| 64 20 28 6d 50 6f 70 75 | 70 43 68 6f 69 63 65 20 |d (mPopu|pChoice |
|00000560| 3d 20 6e 65 77 20 43 68 | 6f 69 63 65 28 29 29 3b |= new Ch|oice());|
|00000570| 0d 09 09 6d 50 6f 70 75 | 70 43 68 6f 69 63 65 2e |...mPopu|pChoice.|
|00000580| 72 65 73 68 61 70 65 20 | 28 32 31 36 2c 20 31 36 |reshape |(216, 16|
|00000590| 2c 20 31 30 30 2c 20 32 | 30 29 3b 0d 09 09 6d 50 |, 100, 2|0);...mP|
|000005a0| 6f 70 75 70 43 68 6f 69 | 63 65 2e 61 64 64 49 74 |opupChoi|ce.addIt|
|000005b0| 65 6d 20 28 22 43 68 6f | 69 63 65 22 29 3b 0d 09 |em ("Cho|ice");..|
|000005c0| 09 6d 50 6f 70 75 70 43 | 68 6f 69 63 65 2e 61 64 |.mPopupC|hoice.ad|
|000005d0| 64 49 74 65 6d 20 28 22 | 2d 22 29 3b 0d 09 09 6d |dItem ("|-");...m|
|000005e0| 50 6f 70 75 70 43 68 6f | 69 63 65 2e 61 64 64 49 |PopupCho|ice.addI|
|000005f0| 74 65 6d 20 28 22 66 72 | 65 64 22 29 3b 0d 09 09 |tem ("fr|ed");...|
|00000600| 6d 50 6f 70 75 70 43 68 | 6f 69 63 65 2e 61 64 64 |mPopupCh|oice.add|
|00000610| 49 74 65 6d 20 28 22 67 | 65 6f 72 67 65 22 29 3b |Item ("g|eorge");|
|00000620| 0d 09 09 6d 50 6f 70 75 | 70 43 68 6f 69 63 65 2e |...mPopu|pChoice.|
|00000630| 61 64 64 49 74 65 6d 20 | 28 22 68 61 72 72 79 22 |addItem |("harry"|
|00000640| 29 3b 0d 0d 09 09 61 64 | 64 20 28 6d 54 65 78 74 |);....ad|d (mText|
|00000650| 41 72 65 61 46 69 65 6c | 64 20 3d 20 6e 65 77 20 |AreaFiel|d = new |
|00000660| 54 65 78 74 41 72 65 61 | 20 28 22 54 65 78 74 41 |TextArea| ("TextA|
|00000670| 72 65 61 22 29 29 3b 0d | 09 09 6d 54 65 78 74 41 |rea"));.|..mTextA|
|00000680| 72 65 61 46 69 65 6c 64 | 2e 72 65 73 68 61 70 65 |reaField|.reshape|
|00000690| 20 28 32 30 2c 20 36 30 | 2c 20 31 30 37 2c 20 36 | (20, 60|, 107, 6|
|000006a0| 38 29 3b 0d 09 09 6d 54 | 65 78 74 41 72 65 61 46 |8);...mT|extAreaF|
|000006b0| 69 65 6c 64 2e 73 65 74 | 42 61 63 6b 67 72 6f 75 |ield.set|Backgrou|
|000006c0| 6e 64 20 28 43 6f 6c 6f | 72 2e 77 68 69 74 65 29 |nd (Colo|r.white)|
|000006d0| 3b 0d 0d 09 09 61 64 64 | 20 28 6d 53 74 79 6c 65 |;....add| (mStyle|
|000006e0| 73 4c 69 73 74 20 3d 20 | 6e 65 77 20 4c 69 73 74 |sList = |new List|
|000006f0| 28 29 29 3b 0d 09 09 6d | 53 74 79 6c 65 73 4c 69 |());...m|StylesLi|
|00000700| 73 74 2e 72 65 73 68 61 | 70 65 20 28 31 36 38 2c |st.resha|pe (168,|
|00000710| 20 36 30 2c 20 31 32 30 | 2c 20 38 34 29 3b 0d 09 | 60, 120|, 84);..|
|00000720| 09 6d 53 74 79 6c 65 73 | 4c 69 73 74 2e 61 64 64 |.mStyles|List.add|
|00000730| 49 74 65 6d 20 28 22 6f | 6e 65 22 29 3b 0d 09 09 |Item ("o|ne");...|
|00000740| 6d 53 74 79 6c 65 73 4c | 69 73 74 2e 61 64 64 49 |mStylesL|ist.addI|
|00000750| 74 65 6d 20 28 22 74 77 | 6f 22 29 3b 0d 09 09 6d |tem ("tw|o");...m|
|00000760| 53 74 79 6c 65 73 4c 69 | 73 74 2e 61 64 64 49 74 |StylesLi|st.addIt|
|00000770| 65 6d 20 28 22 74 68 72 | 65 65 22 29 3b 0d 09 09 |em ("thr|ee");...|
|00000780| 6d 53 74 79 6c 65 73 4c | 69 73 74 2e 61 64 64 49 |mStylesL|ist.addI|
|00000790| 74 65 6d 20 28 22 69 6e | 66 69 6e 69 74 79 22 29 |tem ("in|finity")|
|000007a0| 3b 0d 0d 09 09 61 64 64 | 20 28 6d 4c 61 62 65 6c |;....add| (mLabel|
|000007b0| 4c 61 62 65 6c 20 3d 20 | 6e 65 77 20 4c 61 62 65 |Label = |new Labe|
|000007c0| 6c 20 28 22 4c 61 62 65 | 6c 3a 22 29 29 3b 0d 09 |l ("Labe|l:"));..|
|000007d0| 09 6d 4c 61 62 65 6c 4c | 61 62 65 6c 2e 72 65 73 |.mLabelL|abel.res|
|000007e0| 68 61 70 65 20 28 38 30 | 2c 20 31 36 38 2c 20 34 |hape (80|, 168, 4|
|000007f0| 32 2c 20 31 37 29 3b 0d | 0d 09 09 61 64 64 20 28 |2, 17);.|...add (|
|00000800| 6d 54 65 78 74 46 69 65 | 6c 64 46 69 65 6c 64 20 |mTextFie|ldField |
|00000810| 3d 20 6e 65 77 20 54 65 | 78 74 46 69 65 6c 64 20 |= new Te|xtField |
|00000820| 28 22 54 65 78 74 46 69 | 65 6c 64 22 29 29 3b 0d |("TextFi|eld"));.|
|00000830| 09 09 6d 54 65 78 74 46 | 69 65 6c 64 46 69 65 6c |..mTextF|ieldFiel|
|00000840| 64 2e 72 65 73 68 61 70 | 65 20 28 31 32 30 2c 20 |d.reshap|e (120, |
|00000850| 31 36 38 2c 20 31 30 30 | 2c 20 31 36 29 3b 0d 09 |168, 100|, 16);..|
|00000860| 09 6d 54 65 78 74 46 69 | 65 6c 64 46 69 65 6c 64 |.mTextFi|eldField|
|00000870| 2e 73 65 74 42 61 63 6b | 67 72 6f 75 6e 64 20 28 |.setBack|ground (|
|00000880| 43 6f 6c 6f 72 2e 77 68 | 69 74 65 29 3b 0d 09 7d |Color.wh|ite);..}|
|00000890| 0d 0d 09 2f 2f 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |...//---|-------.|
|000008a0| 09 70 75 62 6c 69 63 20 | 62 6f 6f 6c 65 61 6e 09 |.public |boolean.|
|000008b0| 61 63 74 69 6f 6e 20 28 | 0d 09 09 45 76 65 6e 74 |action (|...Event|
|000008c0| 09 65 29 0d 09 7b 0d 09 | 09 72 65 74 75 72 6e 20 |.e)..{..|.return |
|000008d0| 66 61 6c 73 65 3b 0d 09 | 7d 0d 7d 0d 00 00 00 00 |false;..|}.}.....|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 09 56 69 65 77 2e 6a 61 | 76 61 02 00 00 00 54 45 |.View.ja|va....TE|
|00000940| 58 54 43 57 49 45 00 00 | 15 d3 0e 96 00 00 00 00 |XTCWIE..|........|
|00000950| 00 00 54 45 58 54 43 57 | 49 45 00 00 15 d3 0e 96 |..TEXTCW|IE......|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 ae 97 df 9a 00 00 | 08 5c 00 00 01 1e 00 00 |........|.\......|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000a10| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+